package com.neuedu.hcp.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.regex.Pattern;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 第八组
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("patient")
public class Patient implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("patient_id")
    private Integer patientId;

    private String name;

    private String sex;

    private Integer age;

    //@TableField("Idcard")
    private String Idcard;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;

    private String contact;

    private String telphone;

    private String address;

    private String room;

    private String building;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate indate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate outdate;

    private String remark;

    private Integer nursingId;


}
